package com.anypi;

public enum CC1101Command{

	SRES              ((byte)0x30),        // Reset CC1101 chip
	SFSTXON           ((byte)0x31),        // Enable and calibrate frequency synthesizer (if MCSM0.FS_AUTOCAL=1). If in RX (with CCA):	                                             // Go to a wait state where only the synthesizer is running (for quick RX / TX turnaround).
	SXOFF             ((byte)0x32),        // Turn off crystal oscillator
	SCAL              ((byte)0x33),        // Calibrate frequency synthesizer and turn it off. SCAL can be strobed from IDLE mode without	                                             // setting manual calibration mode (MCSM0.FS_AUTOCAL=0)
	SRX               ((byte)0x34),        // Enable RX. Perform calibration first if coming from IDLE and MCSM0.FS_AUTOCAL=1
	STX               ((byte)0x35),        // In IDLE state: Enable TX. Perform calibration first if MCSM0.FS_AUTOCAL=1.                                          // If in RX state and CCA is enabled: Only go to TX if channel is clear
	SIDLE             ((byte)0x36),        // Exit RX / TX, turn off frequency synthesizer and exit Wake-On-Radio mode if applicable
	SWOR              ((byte)0x38),        // Start automatic RX polling sequence (Wake-on-Radio) as described in Section 19.5 if                                            // WORCTRL.RC_PD=0
	SPWD              ((byte)0x39),        // Enter power down mode when CSn goes high
	SFRX              ((byte)0x3A),        // Flush the RX FIFO buffer. Only issue SFRX in IDLE or RXFIFO_OVERFLOW states
	SFTX              ((byte)0x3B),        // Flush the TX FIFO buffer. Only issue SFTX in IDLE or TXFIFO_UNDERFLOW states
	SWORRST           ((byte)0x3C),        // Reset real time clock to Event1 value
	SNOP              ((byte)0x3D);        // No operation. May be used to get access to the chip status byte
	 
	 private byte value;
	 
	 CC1101Command(byte value){
		 
		 this.value = value;
	 }

	public byte getValue() {
		return value;
	}

}

